/* eslint-disable jsdoc/no-restricted-syntax */
"use strict";

class JsParserPlugin {
  /**
   * @param {any} options
   */
  constructor(options) {
    this.options = options;
  }

  /**
   * @param {import('webpack').Compiler} compiler
   */
  apply(compiler) {
    compiler.hooks.normalModuleFactory.tap("JsParserPlugin", (factory) => {
      factory.hooks.parser
        .for("javascript/auto")
        .tap("MyPlugin", (parser, options) => {
          parser.hooks.someHook.tap(/* ... */);
        });
    });
  }
}
